﻿using AbpDemo.Menus.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Menus.Dto
{
    public class RouteDto
    {
        /// <summary>
        /// 菜单Id
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 菜单类型
        /// </summary>
        public MenuType MenuType { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 后端API路径
        /// </summary>
        public string ApiPath { get; set; }
        /// <summary>
        /// 接口请求方式
        /// </summary>
        public string HttpMethod { get; set; }
        /// <summary>
        /// 路由名称
        /// </summary>
        public string RouteName { get; set; }
        /// <summary>
        /// 路由路径
        /// </summary>
        public string RoutePath { get; set; }
        /// <summary>
        /// 组件路径
        /// </summary>
        public string ComponentPath { get; set; }
        /// <summary>
        /// 路由重向定
        /// </summary>
        public string Redirect { get; set; }
        /// <summary>
        /// 是否隐藏
        /// </summary>
        public bool IsHidden { get; set; }
        /// <summary>
        /// 是否固定
        /// </summary>
        public bool IsAffix { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 权限标识
        /// </summary>
        public string Permission { get; set; }
        /// <summary>
        /// 父ID
        /// </summary>
        public Guid ParentId { get; set; }
        /// <summary>
        /// 当前菜单对应角色
        /// </summary>
        public List<string> Roles { get; set; }
    }
}
